negotiator.protocol
Class BilateralAtomicNegotiationSession

java.lang.Object
  extended by negotiator.protocol.BilateralAtomicNegotiationSession
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
AlternatingOffersBilateralAtomicNegoSession

public abstract class BilateralAtomicNegotiationSession
extends java.lang.Object
implements java.lang.Runnable


Field Summary
 SimpleElement additionalLog
           
protected  Agent agentA
           
protected  java.lang.String agentAname
           
protected  java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams
           
protected  Agent agentB
           
protected  java.lang.String agentBname
           
protected  java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams
           
protected  BidSpace bidSpace
           
protected  java.util.ArrayList<BidPointTime> fAgentABids
           
protected  java.util.ArrayList<BidPointTime> fAgentBBids
           
protected  int finalRound
           
protected  Action lastAction
           
protected  Bid lastBid
           
protected  CSVlogger matchDataLogger
           
protected  OpponentModelMeasuresResults omMeasuresResults
           
protected  Protocol protocol
           
protected  UtilitySpace spaceA
           
protected  UtilitySpace spaceB
           
 
Constructor Summary
BilateralAtomicNegotiationSession(Protocol protocol, Agent agentA, Agent agentB, java.lang.String agentAname, java.lang.String agentBname, UtilitySpace spaceA, UtilitySpace spaceB, java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams, java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams)
           
 
Method Summary
 void addAdditionalLog(SimpleElement pElem)
           
 void addNegotiationEventListener(NegotiationEventListener listener)
           
protected  void fireLogMessage(java.lang.String source, java.lang.String log)
           
protected  void fireNegotiationActionEvent(Agent actorP, Action actP, int roundP, long elapsed, double time, double utilA, double utilB, double utilADiscount, double utilBDiscount, java.lang.String remarks, boolean finalActionEvent)
           
protected  void fireNegotiationActionEvent(Agent actorP, Action actP, int roundP, long elapsed, double utilA, double utilB, double utilADiscount, double utilBDiscount, java.lang.String remarks, boolean finalActionEvent)
          Deprecated. 
 Agent getAgentA()
           
 java.util.ArrayList<BidPointTime> getAgentABids()
           
 java.lang.String getAgentAname()
           
 java.util.HashMap<AgentParameterVariable,AgentParamValue> getAgentAparams()
           
 UtilitySpace getAgentAUtilitySpace()
           
 Agent getAgentB()
           
 java.util.ArrayList<BidPointTime> getAgentBBids()
           
 java.lang.String getAgentBname()
           
 java.util.HashMap<AgentParameterVariable,AgentParamValue> getAgentBparams()
           
 UtilitySpace getAgentBUtilitySpace()
           
 Bid getLastBid()
           
 java.lang.String getLog()
           
 double[][] getNegotiationPathA()
           
 double[][] getNegotiationPathB()
           
 int getNrOfBids()
           
 double getOpponentUtility(Agent pAgent, Bid pBid)
           
 double getOpponentWeight(Agent pAgent, int pIssueID)
           
abstract  java.lang.String getStartingAgent()
           
 int getTestNumber()
           
 int getTournamentNumber()
           
 void removeNegotiationEventListener(NegotiationEventListener listener)
           
 void setLog(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

agentA

protected Agent agentA

agentB

protected Agent agentB

spaceA

protected UtilitySpace spaceA

spaceB

protected UtilitySpace spaceB

agentAname

protected java.lang.String agentAname

agentBname

protected java.lang.String agentBname

lastBid

protected Bid lastBid

lastAction

protected Action lastAction

protocol

protected Protocol protocol

finalRound

protected int finalRound

fAgentABids

protected java.util.ArrayList<BidPointTime> fAgentABids

fAgentBBids

protected java.util.ArrayList<BidPointTime> fAgentBBids

bidSpace

protected BidSpace bidSpace

agentAparams

protected java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams

agentBparams

protected java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams

matchDataLogger

protected CSVlogger matchDataLogger

omMeasuresResults

protected OpponentModelMeasuresResults omMeasuresResults

additionalLog

public SimpleElement additionalLog
Constructor Detail

BilateralAtomicNegotiationSession

public BilateralAtomicNegotiationSession(Protocol protocol,
                                         Agent agentA,
                                         Agent agentB,
                                         java.lang.String agentAname,
                                         java.lang.String agentBname,
                                         UtilitySpace spaceA,
                                         UtilitySpace spaceB,
                                         java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams,
                                         java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams)
                                  throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

addNegotiationEventListener

public void addNegotiationEventListener(NegotiationEventListener listener)

removeNegotiationEventListener

public void removeNegotiationEventListener(NegotiationEventListener listener)

fireNegotiationActionEvent

protected void fireNegotiationActionEvent(Agent actorP,
                                          Action actP,
                                          int roundP,
                                          long elapsed,
                                          double time,
                                          double utilA,
                                          double utilB,
                                          double utilADiscount,
                                          double utilBDiscount,
                                          java.lang.String remarks,
                                          boolean finalActionEvent)

fireNegotiationActionEvent

@Deprecated
protected void fireNegotiationActionEvent(Agent actorP,
                                                     Action actP,
                                                     int roundP,
                                                     long elapsed,
                                                     double utilA,
                                                     double utilB,
                                                     double utilADiscount,
                                                     double utilBDiscount,
                                                     java.lang.String remarks,
                                                     boolean finalActionEvent)
Deprecated. 

Used by AlternatingOffersBilateralAtomicNegoSessionSeparateTimelines. Does not use time.


fireLogMessage

protected void fireLogMessage(java.lang.String source,
                              java.lang.String log)

getLastBid

public Bid getLastBid()

getNrOfBids

public int getNrOfBids()

getNegotiationPathA

public double[][] getNegotiationPathA()

getAgentABids

public java.util.ArrayList<BidPointTime> getAgentABids()

getAgentBBids

public java.util.ArrayList<BidPointTime> getAgentBBids()

getNegotiationPathB

public double[][] getNegotiationPathB()

getOpponentUtility

public double getOpponentUtility(Agent pAgent,
                                 Bid pBid)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getOpponentWeight

public double getOpponentWeight(Agent pAgent,
                                int pIssueID)
                         throws java.lang.Exception
Throws:
java.lang.Exception

addAdditionalLog

public void addAdditionalLog(SimpleElement pElem)

setLog

public void setLog(java.lang.String str)

getLog

public java.lang.String getLog()

getAgentAname

public java.lang.String getAgentAname()

getAgentBname

public java.lang.String getAgentBname()

getTournamentNumber

public int getTournamentNumber()

getTestNumber

public int getTestNumber()

getStartingAgent

public abstract java.lang.String getStartingAgent()

getAgentAparams

public java.util.HashMap<AgentParameterVariable,AgentParamValue> getAgentAparams()

getAgentBparams

public java.util.HashMap<AgentParameterVariable,AgentParamValue> getAgentBparams()

getAgentA

public Agent getAgentA()

getAgentB

public Agent getAgentB()

getAgentAUtilitySpace

public UtilitySpace getAgentAUtilitySpace()

getAgentBUtilitySpace

public UtilitySpace getAgentBUtilitySpace()